<template>
  <div class="new_arrivals">
    <AllNav/>
    <div class="content">
      <ul>
        <li class="list" v-for="(itme, index) in 9" :key="index" @click="skipDetail">
          <div class="top">
            <div class="new">
              <i class="iconfont icon-new"></i>
            </div>
            <div class="date">2023-6</div>
            <div class="d">
              <i class="iconfont icon-sandian"></i>
            </div>
          </div>
          <div class="img">
            <el-image :src="urls" lazy alt=""></el-image>
              <div id="mask1" style="color: #fff; font-size: 13px">
                查看详情
              </div>
          </div>
          <div class="t1">&lt; 简爱 &gt;</div>
          <div class="t2">STLEY：广州&bull;天河婚纱照个人</div>
        </li>
      </ul>
    </div>

    <Footers />
  </div>
</template>

<script>
import Footers from "@/components/Footers.vue";
import AllNav from "@/components/AllNav.vue";
export default {
  components: {
    Footers,
    AllNav,
  },
  data() {
    return {
      urls: 'https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg',
    };
  },
  methods:{
    skipDetail() {
      this.$router.push({ path: "/view_brief" });
    },
  }
};
</script>

<style scoped lang="less">
/deep/ .el-image {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.new_arrivals {
  
  .content {
    width: var(--contentWidth);
    padding: 20px 7px;
    background: #fff;
    margin: 0 auto;
    ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .list:hover #mask1 {
          opacity: 1;
        }
      li {
        width: 469px;
        height: 390px;
        background-color: rgba(249, 249, 249, 1);
        cursor: pointer;
        margin-bottom: 25px;
        
        &:hover{
            box-shadow: 0 0 8px #ccc;
            border-radius: 5px;
          }
        .top {
          width: 100%;
          height: 50px;
          background-color: rgba(238, 238, 238, 1);
          line-height: 20px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 0 10px;
          .new {
            transform: translateY(5px);
            i {
              font-size: 36px;
              color: #00b890;
            }
          }
          .date {
            font-size: 18px;
          }
          .d {
            i {
              font-size: 15px;
              color: #415058;
            }
          }
        }
        .img {
            position: relative;
            width: 449px;
            height: 230px;
            margin: auto;
            margin-top: 10px;
          }
          #mask1 {
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            opacity: 0;
            text-align: center;
            line-height: 230px;
            z-index: 7;
            letter-spacing: 2px;
          }
        .t1 {
          font-size: 20px;
          color: rgba(16, 16, 16, 1);
          text-align: center;
          margin-top: 35px;
        }
        .t2 {
          font-size: 14px;
          color: rgba(206, 206, 206, 1);
          text-align: center;
          margin-top: 8px;
        }
      }
    }
  }
}
</style>